# 应用重启脚本
echo "1.shutting down stock_main.py ..."
ps -ef | grep stock_main.py | grep -v 'grep' | awk '{print $2}' | xargs kill -15
sleep 5
echo "2.starting stock_main.py ..."
nohup python3 stock_main.py online >>/home/logs/main.log 2>&1 &
tail -100f /home/logs/main.log
